package com.example.orderserver.service;

import com.example.server_engineer.controller.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

// name: 指定调用rest接口的服务名
// path: 指定调用rest接口的所在的controller指定的RequestMapping
@FeignClient(name = "user-service",path = "/user")
public interface UserFeignService {
    @GetMapping("/find/{id}")
    R findById(@PathVariable Long id);
}
